package com.idna.wsconsumer.xfire.dynamic;

import org.codehaus.xfire.client.Client;

public class XFireDynamicClientImpl implements XFireDynamicClient
{
	private String operationName;
	private String[] inputs;
	private Client client;
	
	/* (non-Javadoc)
	 * @see com.idna.wsconsumer.xfire.dynamic.XFireDynamicClient#invoke()
	 */
	public Object[] invoke() throws Exception
	{
		return client.invoke(operationName, inputs);
	}

	public void setClient(Client client)
	{
		this.client = client;
	}

	public void setOperationName(String operationName)
	{
		this.operationName = operationName;
	}

	public void setInputs(String[] inputs)
	{
		this.inputs = inputs;
	}
	
}
